﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using FanaticRock.Core.Models;
using FanaticRock.Helpers;

namespace FanaticRock.Extensions
{
    public static class ResourceSourceExtension
    {
        public static ImageBrush CreateImageBrush(this ResourceSource resourceSource)
        {
            if (resourceSource == null) return null;
            return ResourceSourceHelper.CreateImageBrush(resourceSource);
        }

        public static async Task CacheItAsync(this UriResourceSource resourceSource)
        {
            if (resourceSource == null) return;
        }

    }
}
